#ifndef SPACE2DCONTROLLER_H
#define SPACE2DCONTROLLER_H

#include <QObject>
#include "MainWindow.h"
#include "Dot.h"
#include "Line.h"
#include "Triangle.h"
#include "WiredQuadrilateral.h"
#include "Quadrilateral.h"
class Space2DController : public QObject
{
    Q_OBJECT
public:
    explicit Space2DController(MainWindow* mw,QObject* parent = 0);
private:
    Space2D* space2D;

signals:
    
public slots:
    void newVertexHandler(QList<QColor*>);
    void newLineHandler(QList<QColor*>);
    void newTriangleHandler(bool filled, bool wired,QList<QColor*>);
    void newQuadrilateralHandler(bool filled, bool wired,QList<QColor*>);
    void cleanAllHandler();
    void loadTextureHandler(QString);
};

#endif // SPACE2DCONTROLLER_H
